package com.ruoyi.lol;

import com.ruoyi.lol.domain.LolHero;

import java.util.regex.Pattern;

public class Test {
    public static void main(String[] args) {
        Pattern p = Pattern.compile("猎手");

        if (p.matcher("狼人WLK嗜血").find()) {
            System.out.println("1");
        } else if (p.matcher("WLK").find()) {
            System.out.println("2");
        } else if (p.matcher("嗜血猎手").find()) {
            System.out.println("3");
        }

    }
}
